package com.pzh.guli.service.edu.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.pzh.guli.service.edu.pojo.Course;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pzh.guli.service.edu.pojo.vo.CourseDto;
import com.pzh.guli.service.edu.pojo.vo.CoursePublishVo;
import com.pzh.guli.service.edu.pojo.vo.WebCourseVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author xzh
 * @since 2022-05-11
 */

public interface CourseMapper extends BaseMapper<Course> {

    List<CourseDto> selectCoursePage(Page<CourseDto> courseVoPage, @Param(Constants.WRAPPER)QueryWrapper<CourseDto> queryWrapper);

    CoursePublishVo selectCoursePublishById(@Param("id") String id);

    WebCourseVo getCoursePay(String id);
}
